import { moduleFor, test } from 'ember-qunit';

moduleFor('service:my-globals', 'Unit | Service | my globals', {
  // Specify the other units that are required for this test.
  // needs: ['service:foo']
});

// Replace this with your real tests.
test('pass in empty object', function(assert) {
  var service = this.subject();
  assert.ok(service.queryToQ());
});

test('pass in object', function(assert) {
  var service = this.subject();
  var r = service.queryToQ({a: 1});
  assert.ok(r);
  assert.equal("a=1,", r.q);
});
